package com.kun.oa.service;

import com.kun.oa.mapper.RolePermissionMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author fangkun
 * @create 2023-01-12-12:01
 */
@Component
@Service(version = "1.0.0", timeout = 10000, interfaceClass = IRolePermissionService.class)
public class RolePermissionServiceImpl implements IRolePermissionService {

    @Autowired
    private RolePermissionMapper rolePermissionMapper;

    @Override
    public boolean selectById(int id) {
        return rolePermissionMapper.selectById(id)>0 ? true : false;
    }
}
